<HTML>
<HEAD>
<TITLE>DefaultProjectName - CMessageBox</TITLE>
<script type="text/javascript">
  var relPathToCommmon = "../../common/";
  var relPathToHelpDir = "../../common/help/";
</script>
<script type="text/javascript" src="../../common/jsdyn.js" language="JavaScript"></script>
<script type="text/javascript" src="../../common/js.js" language="JavaScript"></script>
<script type="text/javascript" src="leftmenu.js" language="JavaScript"></script>
<script type="text/javascript">
  var toSearchPage     = "_search','../../search";
  Body1();
</script>
<div class="headerPage">CMessageBox</div>
<div class="path"><a href="#" OnMouseOver="link('','../../index',this)" class="pathLink">OOXlib</A><img src="../../common/path-arrow.gif" class="path-arrow"><a href="#" OnMouseOver="link('_dir','include0',this)" class="pathLink">include</A><img src="../../common/path-arrow.gif" class="path-arrow"><a href="#" OnMouseOver="link('_class','CMessageBox4032',this)" class="pathLink">CMessageBox</A><img src="../../common/path-arrow.gif" class="path-arrow"><span class="pathNonLink">CMessageBox</span></div>
<script type="text/javascript">
 Body2();
 BodyLeftMenuStart();
WriteLeftMenu("","","","");
 BodyLeftMenuEnd();
 Body3();
</script>
<span class="tabInActive"><a href="#" OnMouseOver="linkTab('_member','CMessageBox442391882','_description',this)" class="tabLinkInActive">Description</a></span>
<span class="tabActive"><a href="#" OnMouseOver="linkTab('_member','CMessageBox442391882','_source',this)" class="tabLinkActive">Source</a></span>
<span class="tabInActive"><a href="#" OnMouseOver="linkTab('_member','CMessageBox442391882','_callgraph',this)" class="tabLinkInActive">Call Graph</a></span>
<script type="text/javascript">
 Body4();
</script>
<div class="contentAirTop"></div>
<div class="paragraph2NoTopPadding">Start Line: 49</div>
<pre class="codeExamples">
 <a href="#" onMouseOver="link('_member','CMessageBox442391882',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>CMessageBox<BR>(const CXServerConnection * pXServerConnection, const CScreen * pScreen, const ::std::string & WindowName, const ::std::string & MessageText, const OOXLIB_MESSAGEBOX_TYPE & Type, const CColor * pBackgroundColor, const CColor * pTextColor, const unsigned int iHorizontalOffset, const unsigned int iVerticalOffset)',CAPTION,'<strong>Brief description</strong><BR>Constructor.');" onMouseOut="return nd();">OOXlib::CMessageBox::CMessageBox</a>(const CXServerConnection *pXServerConnection, const CScreen *pScreen, const::std::string &amp;WindowName, const::std::string &amp;MessageText, const OOXLIB_MESSAGEBOX_TYPE &amp;Type, const CColor *pBackgroundColor, const CColor *pTextColor, const unsigned int iHorizontalOffset, const unsigned int iVerticalOffset)
                                                                                                                                                             {
    if(NULL == pXServerConnection) {
        <a href="#" onMouseOver="link('_member','OOXLib_THROW3402324798',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>define&nbsp;&nbsp;OOXLib_THROW&nbsp;&nbsp;(ctor_name )',CAPTION,'<strong>Brief description</strong><BR>The main OOXlib throw replacement macro.');" onMouseOut="return nd();">OOXLib_THROW</a>(CNULLPtrConnectionException);
    }
    if(NULL == pScreen) {
        <a href="#" onMouseOver="link('_member','OOXLib_THROW3402324798',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>define&nbsp;&nbsp;OOXLib_THROW&nbsp;&nbsp;(ctor_name )',CAPTION,'<strong>Brief description</strong><BR>The main OOXlib throw replacement macro.');" onMouseOut="return nd();">OOXLib_THROW</a>(CNULLPtrScreenException);
    }
    CDefaultEventHandler deh(pXServerConnection);
    switch(Type) {
        case <a href="#" onMouseOver="link('_member','OOXLIB_MESSAGEBOX_ERROR53624',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>enumval&nbsp;&nbsp;OOXLIB_MESSAGEBOX_ERROR',CAPTION,'<strong>Brief description</strong><BR>Error messagebox.');" onMouseOut="return nd();">OOXLIB_MESSAGEBOX_ERROR</a>: {
            CMessageBoxWindow mbw(pXServerConnection, pScreen, CUInt2dRectangle(0, 0, 1, 1), &amp;deh, WindowName, MessageText, "OOXlib/resource/error_icon.xpm", "OOXlib/resource/error.xpm", pBackgroundColor, pTextColor, iHorizontalOffset, iVerticalOffset);
            mbw.Show();
            mbw.Hide();
            break;
        } case <a href="#" onMouseOver="link('_member','OOXLIB_MESSAGEBOX_WARNING53624',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>enumval&nbsp;&nbsp;OOXLIB_MESSAGEBOX_WARNING',CAPTION,'<strong>Brief description</strong><BR>Warning messagebox.');" onMouseOut="return nd();">OOXLIB_MESSAGEBOX_WARNING</a>: {
            CMessageBoxWindow mbw(pXServerConnection, pScreen, CUInt2dRectangle(0, 0, 1, 1), &amp;deh, WindowName, MessageText, "OOXlib/resource/warning_icon.xpm", "OOXlib/resource/warning.xpm", pBackgroundColor, pTextColor, iHorizontalOffset, iVerticalOffset);
            mbw.Show();
            mbw.Hide();
            break;
        } default:
            break;
    }
}
</pre><div class="contentAirBottom"></div>
<script type="text/javascript">
 Body5();
Statistics("","","","","");
 Body6();
SetPageTab('_member','_source');
</script>
